package nxu.dao;

import  com.mysql.cj.jdbc.MysqlDataSource;
import org.jdbi.v3.core.Jdbi;

import javax.sql.DataSource;

public class DbHelper {
    public static final DataSource DATA_SOURCE;
    public static final Jdbi JDBI;
    static {
        MysqlDataSource ds = new MysqlDataSource();
        ds.setURL("jdbc:mysql://localhost:3306/majordesign");
        ds.setUser("root");
        ds.setPassword("0521551X");
        DATA_SOURCE=ds;
        JDBI =Jdbi.create(ds);
    }
}
